<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: WangJun
  Date: 2024/11/7
  Time: 11:29
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int num = 3;
    request.setAttribute("num", num);
%>

<c:if test="${num > 2}">
    正确
</c:if>
<c:if test="${num <= 2}">
    错误
</c:if>

</body>
</html>
